import fetch from "@/api/fetch"
import constants from "@/api/constants"

const baseURL = constants.baseURL + "/auth";

const api = {
    // 登录
    login: {
        isLogin() {
            return fetch.post(baseURL + "/isLogin")
        },
        loginWithPhone(params) {
            return fetch.post(baseURL + "/member/loginWithPhonePassword", params);
        },
        logout() {
            return fetch.post(baseURL + "/logout")
        }
    }
}

export default api;